//
//  NearbyObject.m
//  HappyTrip
//
//  Created by GeminyXC on 15-3-23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NearbyObject.h"

@implementation NearbyObject

- (void)dealloc
{
    [_visited_count release];
    [_wish_to_go_count release];
    [_recommended_reason release];
    [_cover_route_map_cover release];
    [_cover_s release];
    [_name release];
    [super dealloc];
}

- (instancetype)initWithNSdictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        self.type = [NSString stringWithFormat:@"%@", [dic objectForKey:@"type"]];
        self.urlID = [NSString stringWithFormat:@"%@", [dic objectForKey:@"id"]];
        self.visited_count = [NSString stringWithFormat:@"%@", [dic objectForKey:@"visited_count"]];
        self.wish_to_go_count = [NSString stringWithFormat:@"%@", [dic objectForKey:@"wish_to_go_count"]];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.urlID = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}



@end
